/*
 * @Description: In User Settings Edit
 * @Author:zhanghao
 * @Date: 2019-10-11 11:07:22
 * @LastEditTime: 2019-10-11 16:19:30
 * @LastEditors: Please set LastEditors
 */
const Router =require('koa-router');
const router=new Router();
const {HttpException}=require('../../../core/http-exception')

router.post('/v1/:id/classic/latest/latest',(ctx,next)=>{
    const path= ctx.params;
    
    const query= ctx.request.query;
    
    const headers =ctx.request.header;
    console.log(path)
    const body =ctx.request.body;
  
    if(true){
        const error=new HttpException('why wrong',1001,400)
        // error.requestUrl=`${ctx.method} with ${ctx.path}`
        throw error
        
    }
    ctx.body={key:"classic"}
});
module.exports=router